//
//  WHCollectionViewCell.m
//  ShiWuPai
//
//  Created by app on 16/11/23.
//  Copyright © 2016年 QQ:244987427. All rights reserved.
//

#import "WHCollectionViewCell.h"
#import <UIKit+AFNetworking.h>
@implementation WHCollectionViewCell
-(void)setFeed:(WHFeed *)feed{

    NSURL *cardImageURL=[NSURL URLWithString:feed.cardImage];
    NSURL *avatarImageURL=[NSURL URLWithString:feed.publisherAvatar];
    [self.cardImageView setImageWithURL:cardImageURL placeholderImage:nil];
    self.titleLable.text=feed.title;
    self.descriptionLable.text=feed.descriptionField;
    [self.avatarImageView setImageWithURL:avatarImageURL placeholderImage:nil];
    self.publisherNameLable.text=feed.publisher;
    self.likeCountLable.text=[NSString stringWithFormat:@"%ld",feed.likeCt];
    
    
}
@end
